package cn.itcast.zt.java8.mapstruct.objlist;

import cn.itcast.zt.java8.mapstruct.BaseMapping;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * create by zhangtian105 on 2021/7/28
 */
@Mapper
public interface AABBMapping extends BaseMapping<AA, BB> {
    @Mappings({
            @Mapping(target = "idCard", source = "id"),
            @Mapping(target = "username", source = "name")
    })
    BB sourceToTarget(AA aa);
}
